home *** CD-ROM | disk | FTP | other *** search
- property pMySprite, pMyMember, pMyMember2, pMyMember3
-
- on beginSprite me
- pMySprite = sprite(me.spriteNum)
- pMyMember = pMySprite.memberNum
- pMyMember2 = pMyMember - 1
- pMyMember3 = pMyMember + 1
- end
-
- on mouseEnter me
- if sprite(1).pUndoTrigger = 0 then
- pass()
- else
- set the memberNum of sprite pMySprite to pMyMember3
- case the currentSpriteNum of
- "38":
- put "Copy the current image to clipboard. (Ctrl+C)" into field "status"
- "43":
- put "Fills the current image or selection with the background color. (Delete)" into field "status"
- "49":
- put "Rotate the image or selection 90 degrees. (Shift+Right Arrow)" into field "status"
- "50":
- put "Flip the image or selection horizontally. (Shift+Left Arrow)" into field "status"
- "51":
- put "Flip the image or selection vertically. (Shift+Down Arrow)" into field "status"
- "52":
- put "Nudge the image or selection to the left by 1 pixel. (Left Arrow)" into field "status"
- "53":
- put "Nudge the image or selection to the right by 1 pixel. (Right Arrow)" into field "status"
- "54":
- put "Nudge the image or selection up by 1 pixel. (Up Arrow)" into field "status"
- "55":
- put "Nudge the image or selection down by 1 pixel. (Down Arrow)" into field "status"
- "56":
- put "Mirror the left half of the image or selection. (Ctrl+Right Arrow)" into field "status"
- "57":
- put "Mirror the right half of the image or selection. (Ctrl+Left Arrow)" into field "status"
- "58":
- put "Mirror the top half of the image or selection. (Ctrl+Down Arrow)" into field "status"
- "59":
- put "Mirror the bottom half of the image or selection. (Ctrl+Up Arrow)" into field "status"
- end case
- end if
- end
-
- on mouseLeave me
- if sprite(1).pUndoTrigger = 0 then
- pass()
- else
- set the memberNum of sprite pMySprite to pMyMember
- put EMPTY into field "status"
- end if
- end
-
- on mouseDown me
- if sprite(1).pUndoTrigger = 0 then
- pass()
- else
- repeat while the mouseDown
- set the memberNum of sprite pMySprite to pMyMember2
- updateStage()
- end repeat
- end if
- end
-
- on mouseUp me
- if sprite(1).pUndoTrigger = 0 then
- pass()
- else
- set the memberNum of sprite pMySprite to pMyMember3
- case the currentSpriteNum of
- "38":
- copyCurrent()
- "43":
- clearCurrentImage()
- "49":
- rotate90Degrees()
- "50":
- flipHorizontal()
- "51":
- flipVertical()
- "52":
- nudgeLeft()
- "53":
- nudgeRight()
- "54":
- nudgeUp()
- "55":
- nudgeDown()
- "56":
- mirrorLtoR()
- "57":
- mirrorRtoL()
- "58":
- mirrorTtoB()
- "59":
- mirrorBtoT()
- end case
- end if
- end
-